package com.qf.quduba.dao;

import com.qf.quduba.entity.User;
import org.apache.ibatis.annotations.Param;

/**
 * @author 17312
 * @time2020/10/1020:31
 */
public interface UserDAO {
    User loginByUsernameAndPassword(@Param("username") String username, @Param("password") String password);
    int registerUser(User user);
    int updateByPrimaryKeySelective(User record);

    int addAuthor(User user);
    //用户消费之后修改用户趣币
    int updateUserMoney(@Param("userId") Integer userId,@Param("newMoney") Double newMoney);
}
